home *** CD-ROM | disk | FTP | other *** search
/ MacHack 2000 / MacHack 2000.toast / pc / The Hacks / Softshoe / Lisa's Mac Parts / Mac Porting Points / Integers.h < prev    next >
Text File  |  2000-06-23  |  752b  |  37 lines

  1. // Integers.h
  2.  
  3. #ifndef Integers_h
  4. #define Integers_h
  5.  
  6. #include <stddef.h>
  7.  
  8. typedef signed char int8;
  9. const int8 minint8 = -0x7f-1;
  10. const int8 maxint8 =  0x7f;
  11.  
  12. typedef unsigned char uint8;
  13. const uint8 maxuint8 = 0xff;
  14.  
  15. typedef short int16;
  16. const int16 minint16 = -0x7fff-1;
  17. const int16 maxint16 =  0x7fff;
  18.  
  19. typedef unsigned short uint16;
  20. const uint16 maxuint16 = 0xffff;
  21.  
  22. typedef long int32;
  23. const int32 minint32 = -0x7fffffffL-1;
  24. const int32 maxint32 =  0x7fffffffL;
  25.  
  26. typedef unsigned long uint32;
  27. const uint32 maxuint32 = 0xffffffffuL;
  28.  
  29. typedef long long int64;
  30. const int64 minint64 = -0x7fffffffffffffffLL - 1;
  31. const int64 maxint64 =  0x7fffffffffffffffLL;
  32.  
  33. typedef unsigned long long uint64;
  34. const uint64 maxuint64 = 0xffffffffffffffffuLL;
  35.  
  36. #endif
  37.